package com.aaa.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/12/29 15:37
 * @Description
 */
@RestController
@Slf4j
public class HelloController {
    @GetMapping("hello")
    public String hello() {
        log.info("快速入门springsecurity");
        return "快速入门springsecurity";
    }

    @PostMapping("success")
    public String success() {
        return "登录成功！！！！";
    }

    @GetMapping("fail")
    public String haveNoLegalPower() {
        return "没有权限访问！！！！";
    }
}
